package com.example.androidproject.app.classifybean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class ClassifyBean {
    /**
     * status : 0
     * message : 成功
     * data : [{"classify":"体育"},{"classify":"创意"},{"classify":"动漫"},{"classify":"动物"},{"classify":"卡通"},{"classify":"可爱"},{"classify":"品牌"},{"classify":"建筑"},{"classify":"影视"},{"classify":"明星"},{"classify":"植物"},{"classify":"汽车"},{"classify":"游戏"},{"classify":"爱情"},{"classify":"精美"},{"classify":"美女"},{"classify":"节日"},{"classify":"车模"},{"classify":"风景"}]
     */

    private int status;
    private String message;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * classify : 体育
         */

        private String classify;

        protected DataBean(Parcel in) {
            classify = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public String getClassify() {
            return classify;
        }

        public void setClassify(String classify) {
            this.classify = classify;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(classify);
        }
    }
}
